import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store' // vuex
import Mint from 'mint-ui'
import './permission' // permission control
import './mock'
import * as filters from './filter'

Vue.use(Mint)
Vue.config.productionTip = false

// register global utility filters.
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
